﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>系统界面</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="scripts/boot.js" type="text/javascript"></script>
    <style type="text/css">
        body
        {
            margin: 0;
            padding: 0;
            border: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .header
        {
            background: url(images/bg.png) repeat-x 0 -1px;
        }
        .logo
        {
            width: 275px;
            height: 80px;
            background: url(images/logo.png) no-repeat 0 -1px;
        }
    </style>
</head>
<body>
    <!--Layout-->
    <div id="layout1" class="mini-layout" style="width: 100%; height: 100%;">
        <div class="header" region="north" height="85" showsplit="false" showheader="false">
            <div class="logo">
            </div>
            <div style="position: absolute; top: 38px; left: 300px; font-size: 20px;">
                城市更新报建流程
            </div>
            <div style="position: absolute; top: 18px; right: 10px;">
                欢迎，<%=CurrentUser.Department %>
                - <span class="red">
                    <%=CurrentUser.Name %>
                </span><a onclick=" return window.confirm('确定退出系统？') ;" id="ctl00_hlLogin" href="Login.aspx?mode=logout">
                    退出系统</a>
            </div>
        </div>
        <div title="center" region="center" style="border: 0;" bodystyle="overflow:hidden;">
            <!--Splitter-->
            <div class="mini-splitter" style="width: 100%; height: 100%;" borderstyle="border:0;">
                <div size="180" maxsize="250" minsize="100" showcollapsebutton="true" style="border: 0;">
                    <!--OutlookTree-->
                    <div id="leftTree" class="mini-outlookmenu" url="Handler.ashx?method=LoadMenu&mode=default"
                        onitemclick="onitemclick" textfield="text" idfield="id" parentfield="pid">
                    </div>
                </div>
                <div showcollapsebutton="false" style="border: 0;">
                    <!--Tabs-->
                    <div id="mainTabs" class="mini-tabs" activeindex="0" style="width: 100%; height: 100%;"
                        plain="false">
                        <div title="项目列表" url="/Business/ProjectList.aspx" showclosebutton="true" iconCls="icon-folder">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        mini.parse();

        var tree = mini.get("leftTree");
        var mainTab = mini.get("mainTabs");

        function showTab(node) {
            
            var id = "tab$" + node.id;
            var tab = mainTab.getTab(id);
            if (!tab) {
                tab = {};
                tab.name = id;
                tab.title = node.text;
                tab.showCloseButton = true;
                tab.url = node.url;
                tab.iconCls = node.iconCls;
                //tab.refreshOnClick = true;
                mainTab.addTab(tab);
            }
            else { mainTab.reloadTab(tab) }
            mainTab.activeTab(tab);
        }

        function openOfActive(title, url) {

        }

        function onitemclick(e) {
            var item = e.item;

            showTab(item);
        }

        function onClick(e) {
            var text = this.getText();
            mini.alert(text);
        }
        function onQuickClick(e) {
            tree.expandPath("datagrid");
            tree.selectNode("datagrid");
        }
    </script>
</body>
</html>
